<?php
/**
 * Created by PhpStorm.
 * User: qishengqiang
 * Date: 2022-06-05
 * Time: 16:54
 */

namespace app\models;


class OrderGoods extends ModelBase
{
    protected $pk = 'orderGoodsId';

    public function goods()
    {
        return $this->hasOne(Goods::class, 'goodsId', 'goodsId');
    }
}